@charset "utf-8";
/**
 * Created by henian.xu on 2019/3/18.
 *
 */

// 浮动与清除浮动
.fn-left {
    float: left;
}

.fn-right {
    float: right;
}

.fn-clear {
    @include clearfix;
}

// 隐藏
.fn-hide {
    display: none !important;
}

// 超出隐藏
.fn-hidden {
    overflow: hidden !important;
}

.fn-hidden-x {
    overflow-x: hidden !important;
}

.fn-hidden-y {
    overflow-y: hidden !important;
}

// 字体大小
.fs-base {
    font-size: $body-font-size !important;
}

@each $key, $value in $sizeList {
    .fs-#{$key} {
        font-size: (100% * $value) !important;
    }
}

// 文本对齐
@each $key, $value in (c:center, l:left, r:right, j:justify) {
    .ta-#{$key} {
        text-align: $value !important;
    }
}

// 字体颜色
.tc-default {
    color: $color-text !important;
}

@each $key, $value in $colorList {
    .tc-#{$key} {
        color: $value !important;
    }
}

// 垂直对齐
@each $key, $value in (t:top, m:middle, b:bottom) {
    .va-#{$key} {
        vertical-align: $value !important;
    }
}

// 1px 边框
@each $key, $value in (a:'', t:'-top', r:'-right', b:'-bottom', l:'-left') {
    .bor-#{$key} {
        border#{$value}: 1px solid $color-border !important;
    }
    .nbor-#{$key} {
        border#{$value}: 0 !important;
    }
}

// 模盒
@each $key, $value in (b:block, i:inline, ib:inline-block, fx:flex, ifx:inline-flex) {
    .dp-#{$key} {
        display: $value !important;
    }
}

// 背景颜色
.bc-t {
    background-color: transparent !important;
}

@each $key, $value in $colorList {
    .bc-#{$key} {
        background-color: $value !important;
    }
}

// 间距
@each $key, $value in (a:'', t:'-top', r:'-right', b:'-bottom', l:'-left') {
    /* small */
    .ma-#{$key}s {
        margin#{$value}: $margin-small !important;
    }
    .pa-#{$key}s {
        padding#{$value}: $margin-small !important;
    }
    .ma-bor-#{$key}s {
        border#{$value}: $margin-small solid mix(#000, $color-body, 10%) !important;
    }
    /* normal */
    .ma-#{$key} {
        margin#{$value}: $margin !important;
    }
    .nma-#{$key} {
        margin#{$value}: 0 !important;
    }
    .pa-#{$key} {
        padding#{$value}: $padding !important;
    }
    .npa-#{$key} {
        padding#{$value}: 0 !important;
    }
    .ma-bor-#{$key} {
        border#{$value}: $margin solid $gray1 !important;
    }
    /* big */
    .ma-#{$key}b {
        margin#{$value}: $margin-big !important;
    }
    .pa-#{$key}b {
        padding#{$value}: $margin-big !important;
    }
    .ma-bor-#{$key}b {
        border#{$value}: $margin-big solid $gray1 !important;
    }
}
